import copy

a = [11, 22, 33]
b = [44, 55, 66]

c = (a, b)
d = c
print(id(c)) # 这两个输出相同
print(id(d))


e = copy.deepcopy(c)

print(id(e))

a.append(44)

print(a)

print(b)

print(c) # ([11, 22, 33, 44], [44, 55, 66])

print(e) # ([11, 22, 33], [44, 55, 66])

print("======")
f = copy.copy(c)

a.append(55)

print(a) # [11, 22, 33, 44, 55]

print(b) # [44, 55, 66]

print(c) # ([11, 22, 33, 44, 55], [44, 55, 66])

print(e) # ([11, 22, 33], [44, 55, 66])

print(f) # ([11, 22, 33, 44, 55], [44, 55, 66])